package app.vendorportal.api.data.request;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author Bribin
 */
@XmlRootElement(name = "query-delivery-date-request")
@XmlAccessorType(XmlAccessType.FIELD)
@Deprecated
public class QueryDeliveryDateRequest {

    @XmlElement(name = "order-date")
    private Date orderDate;

    @XmlElement(name = "zip-code")
    private String zipCode;

    @XmlElementWrapper(name = "warehouse-code-list")
    @XmlElement(name = "warehouse-code")
    private final List<String> warehouseCodes = new ArrayList<String>();

    public Date getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(Date orderDate) {
        this.orderDate = orderDate;
    }

    public String getZipCode() {
        return zipCode;
    }

    public void setZipCode(String zipCode) {
        this.zipCode = zipCode;
    }

    public List<String> getWarehouseCodes() {
        return warehouseCodes;
    }

}
